<?php
/*
 * Field.php
 *
 * Copyright (c) 2011 Emanuele Colonnelli <emanuele.colonnelli@php-struct.org>.
 *
 * This file is part of Expression program is undefined on line 9, column 40 in Templates/Licenses/license-gpl30.txt..
 *
 * Expression program is undefined on line 11, column 19 in Templates/Licenses/license-gpl30.txt. is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Expression program is undefined on line 16, column 19 in Templates/Licenses/license-gpl30.txt. is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Expression program is undefined on line 22, column 30 in Templates/Licenses/license-gpl30.txt..  If not, see <http ://www.gnu.org/licenses/>.
 */

namespace org\phpstruct\db\ORM;

use org\phpstruct\core;
use org\phpstruct\util;

/**
 * Description of Field
 *
 * @author Emanuele Colonnelli <emanuele.colonnelli@php-struct.org>
 */
abstract class Field {

    protected $dataType;
    protected $name;
    protected $value;

    function __construct($dataType, $name, $value) {
        $this->dataType = $dataType;
        $this->name = $name;
        $this->value = $value;
    }

    public function getDataType() {
        return $this->dataType;
    }

    public function setDataType($dataType) {

        $this->dataType = $dataType;
    }

    public function getName() {
        return $this->name;
    }

    public function setName($name) {
        $this->name = $name;
    }

    public function getValue() {
        return $this->value;
    }

    public function setValue($value) {
        $this->value = $value;
    }

    public function __toString() {
        return "{$this->value}";
    }

}
